package ws.jdbc.concurrent.driver.sqlserver

/**
 * Test forward-only and read-only result sets.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
class ForwardOnlyReadOnlyTest extends ResultSetTest {

  /**
   * Test of next() method.
   */
  void testNext(rs = rs) {
    println "testNext()"

    assertTrue rs.next()
    assertLineValuesMatch(rs, 1)
  }

  /**
   * Loop test: loop through all result set rows, and retrive the values of each row.
   */
  void testNextLoop(rs = rs) {
    println "testNextLoop()"

    assertResultSetEquals(rs) {
      rs.next()
    }
  }
}

